package com.zcc.blog.mapper;

import com.zcc.blog.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcc.blog.untils.Result;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zcc
 * @since 2022-09-11
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    /**
     * 删除或者恢复分类
     * @param status 1 删除 0 恢复
     * @param id
     * @return
     */
    public boolean changeStatus(Integer status, Long id);

}
